import React from "react";
/**
 * 提示组件
 */
function Alert(props) {
  return (
    <div
      className={["alert", "alert-dismissible", "alert-" + props.type].join(" ")}
      role="alert"
    >
      <button
        type="button"
        className="close"
        data-dismiss="alert"
        aria-label="Close"
      >
        <span aria-hidden="true">&times;</span>
      </button>
      <strong>tips!</strong> {props.alert}
    </div>
  );
}

export default Alert;
